const express = require('express');
const app = express();
app.get('/ysxget', (req, res) => {
    console.log(req.query);
    res.send('好的')
})
app.post('/okkpost',(req,res)=>{
    console.log(req.body);
    res.send('这是post')
})
app.listen(3000, err => {
    if (!err) console.log('服务器启动成功');
    else console.log(err);
})